package com.mangrove;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.WindowManager;

public class Splash extends Activity {
	/** Called when the activity is first created. */
	private final int SPLASH_TIME =  1000;
	
	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);
		
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); 
		new Handler().postDelayed(new Runnable(){
			public void run(){
				Intent splashIntent = new Intent(Splash.this,Login.class);
				Splash.this.startActivity(splashIntent);
				Splash.this.finish();
			}
		}, SPLASH_TIME);
	}

}